package cn.sytton.taffecloud.service.system.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class AuthMenuTree {

    public AuthMenuTree(MenuEntity entity) {
        this.id = entity.getMenuId();
        this.parentId = entity.getParentId();
        this.label = entity.getMenuName();
    }
    private String id;
    private String parentId;
    private String label;
    private boolean checked = false;
    private boolean indeterminate = false;
    private List<AuthMenuTree> children = new ArrayList<>();
    private List<AuthFuncKey> funcKeys = new ArrayList<>();

    private String menuCode;
    private String route;
    private String iconClass;
    private int hiddenRoute = 0;
}
